package com.tchhy.provider.data.healthy.response

import android.os.Parcel
import android.os.Parcelable

/**
 * @author: pujialin
 * @date: 2021-01-15 10:59
 * @desc:
 */
class RedPoint(): Parcelable {
    var mall:String? = null
    var group:String? = null
    var live:String? = null
    var inquiry:String? = null
    var homeCare:String? = null
    var activity:String? = null
    var order:String? = null

    constructor(parcel: Parcel) : this() {
        mall = parcel.readString()
        group = parcel.readString()
        live = parcel.readString()
        inquiry = parcel.readString()
        homeCare = parcel.readString()
        activity = parcel.readString()
        order = parcel.readString()
    }

    override fun writeToParcel(parcel: Parcel, flags: Int) {
        parcel.writeString(mall)
        parcel.writeString(group)
        parcel.writeString(live)
        parcel.writeString(inquiry)
        parcel.writeString(homeCare)
        parcel.writeString(activity)
        parcel.writeString(order)
    }

    override fun describeContents(): Int {
        return 0
    }

    companion object CREATOR : Parcelable.Creator<RedPoint> {
        override fun createFromParcel(parcel: Parcel): RedPoint {
            return RedPoint(parcel)
        }

        override fun newArray(size: Int): Array<RedPoint?> {
            return arrayOfNulls(size)
        }
    }
}